project(ai-sokoban-42)
cmake_minimum_required(VERSION 2.6)

set(CMAKE_INSTALL_PREFIX ${CMAKE_SOURCE_DIR}/bin CACHE PATH "Install path prefix" FORCE)
set(SOURCES cboard.cc  cmovepool.cc  cplayer.cc  csocket.cc main.cc)
add_executable(sokoban ${SOURCES})
set(CMAKE_CXX_FLAGS "-Wall -Wextra -g -std=gnu++0x ${CMAKE_CXX_FLAGS}")
install(TARGETS sokoban RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX})
